

import 'package:rms_mobile_client/StateManagement/ModelProvider.dart';

class User with Model {
  User();
  var _values = <String, dynamic>{
    "name": "",
    "password": ""
  };

  String get name => _values["name"];
  set name(String newName) => _values["name"] = newName;

  String get password => _values["password"];
  set password(String newPassword) => _values["password"] = newPassword;

  factory User.fromJson(Map<String, dynamic> json){
    var self = User();
    self._values = json;
    return self;
  }

  Map<String, dynamic> toJson() => _values;
}